<?php

/*
 * @author HX<titanrain@163.com>
 */
class Param {

	public static function getStr($field, $default = '') {
		return isset ($_REQUEST[$field]) ? trim($_REQUEST[$field]) : $default;
	}

	public static function getInt($field, $default = 0) {
		$tmp = isset ($_REQUEST[$field]) ? $_REQUEST[$field] : $default;
		return intval($tmp);
	}
}